The corresponding C type for android.net.Network#getNetworkHandle() return values. The Java signed long value can be safely cast to a net_handle_t:
Possible values of the flags argument to android_res_nsend and android_res_nquery. Values are ORed together.
Perform hostname resolution via the DNS servers associated with |network|.
Attempts to cancel the in-progress query associated with the |nsend_fd| descriptor.
Look up the {|ns_class|, |ns_type|} Resource Record (RR) associated with Domain Name |dname| on the given |network|. The typical value for |ns_class| is ns_c_in, while |type| can be any record type (for instance, ns_t_aaaa or ns_t_txt). |flags| is a additional config to control actual querying behavior, see ResNsendFlags for detail.
Read a result for the query associated with the |fd| descriptor. Closes |fd| before returning.
Issue the query |msg| on the given |network|. |flags| is a additional config to control actual querying behavior, see ResNsendFlags for detail.
Binds the current process to |network|. All sockets created in the future (and not explicitly bound via android_setsocknetwork()) will be bound to |network|. All host name resolutions will be limited to |network| as well. Note that if the network identified by |network| ever disconnects, all sockets created in this way will cease to work and all host name resolutions will fail. This is by design so an application doesn't accidentally use sockets it thinks are still bound to a particular network.
Set the network to be used by the given socket file descriptor.
The value NETWORK_UNSPECIFIED indicates no specific network.
@file multinetwork.h